/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.raip.io
 *
 * 版权所有，侵权必究！
 */

package com.cz.modules.job.task;

import com.cz.modules.cw.service.CwParkingSpaceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import java.nio.charset.StandardCharsets;

/**
 * 测试定时任务(演示Demo，可删除)
 *
 * testTask为spring bean的名称
 *
 * @author Mark sunlightcs@gmail.com
 */
@Component("parkingSpaceSaveTask")
public class ParkingSpaceSaveTask implements ITask {
	@Autowired
	CwParkingSpaceService cwParkingSpaceService;
	private Logger logger = LoggerFactory.getLogger(getClass());

	@Override
	public void run(String params){
		cwParkingSpaceService.saveParkingSpaceUse();
	}
}
